<div class="projects index">
	<h2><?php echo __('Projects');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('domain', __('Project URL',true));?></th>
			<th><?php echo $this->Paginator->sort('name');?></th>
			<th><?php echo $this->Paginator->sort('descriptions',__('Note'));?></th>	
			<th class="actions"><?php echo $this->Html->link(__('New Project'), array('action' => 'add')); ?></th>
	</tr>
	<?php
	foreach ($projects as $project): ?>
	<tr  onclick="document.location='<?php echo $this->Html->url(array('action' => 'view', $project['Project']['id']),true);?>'">
		<td><?php echo h($project['Project']['id']); ?>&nbsp;</td>
		<td><?php echo $this->Html->link($project['Project']['domain'],array('action' => 'view', $project['Project']['id'])); ?>&nbsp;</td>
		<td><?php echo h($project['Project']['name']); ?>&nbsp;</td>
		<td colspan="2"><?php echo h($project['Project']['descriptions']); ?>&nbsp;</td>	
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">	
	<?php echo $this->element('/menu/main')?>
	<?php echo $this->element('/menu/settings')?>
</div>
